<%@page import="entities.SiteConfig"%>
<%@page import="com.google.appengine.api.blobstore.BlobKey"%>
<%@page import="com.google.appengine.api.images.ImagesServiceFactory"%>
<%@page import="com.google.appengine.api.images.ImagesService"%>
<%@page import="com.google.appengine.api.blobstore.BlobstoreServiceFactory"%>
<%@page import="com.google.appengine.api.blobstore.BlobstoreService"%>
<%@page import="java.util.TreeMap"%>
<%@page import="helpers.UrlHelper"%>

<%
BlobstoreService blobstoreService = BlobstoreServiceFactory.getBlobstoreService();
TreeMap check = (TreeMap) request.getAttribute("check");
SiteConfig configs = (SiteConfig) request.getAttribute("configs");
String form = (String) request.getAttribute("form");

ImagesService imagesService = ImagesServiceFactory.getImagesService();
%>

<jsp:include page="/admin/layouts/header.jsp" />

<script type="text/javascript" src="/admin/js/form_config.js"></script>

		
		<div class="maincontent noright">
        	<div class="maincontentinner">
                <ul class="maintabmenu multipletabmenu">
                	<li><a href="/admin/config/site/form_site">Site Config</a></li>
                	<li class="current"><a href="/admin/config/site/layout">Layout Config</a></li>
                </ul><!--maintabmenu-->
                
                <div class="content">
					<jsp:include page="/admin/elements/message_box.jsp" />
					
                    <div class="contenttitle">
                    	<h2 class="form"><span>Layout Config</span></h2>
                    </div><!--contenttitle-->
                    
                    <br>
            
                    <form class="stdform stdform2" id="edit_config_form" method="post">
                    	
                        <p>
                        	<label>Site Url</label>
                            <span class="field">
                            	<input type="text" class="smallinput" name="layoutSiteUrl" id="c_layoutSiteUrl" value="<%=configs.getLayoutSiteUrl() != null ? configs.getLayoutSiteUrl() : "" %>">
                            	<% if (check.get("layoutSiteUrl") != null) { %>
									<label for="c_layoutSiteUrl" generated="true" class="error"><%=check.get("layoutSiteUrl") %></label>
								<% } %>
                            </span>
                        </p>
                        
                        <p>
                        	<label>
                        		Copyright Text
                        	</label>
                            <span class="field">
                            	<input id="c_layoutCopyright" class="mediuminput" type="text" name="layoutCopyright" value="<%=configs.getLayoutCopyright() != null ? configs.getLayoutCopyright() : "" %>" maxlength="100">
                            	 <% if (check.get("layoutCopyright") != null) { %>
									<label for="c_layoutCopyright" generated="true" class="error"><%=check.get("layoutCopyright") %></label>
								<% } %>
                            </span>
                        </p>
                        
                        <p class="stdformbutton">
                        	<button class="submit radius2">Submit Button</button>
                            <input type="reset" value="Reset Button" class="reset radius2">
                        </p>
                        
                    </form>
                    
                    <br clear="all">
                    
                </div><!--content-->
                
            </div><!--maincontentinner-->
            
            <jsp:include page="/admin/elements/copyright.jsp" />
            
        </div>

<jsp:include page="/admin/layouts/footer.jsp" />